import { createPinia } from 'pinia'
// 持久化插件
import persist from 'pinia-plugin-persistedstate'

const pinia = createPinia()
pinia.use(persist)

//这个写法可以将模块中的export文件都暴露出来
export * from './modules/counter'
export * from './modules/user'
export * from './modules/consult'

export default pinia
